import request from '@/router/axios'

export function fetchHisDrugPotionList(query) {
  return request({
    url: '/his/hisdrugpotion/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugPotionObj(obj) {
  return request({
    url: '/his/hisdrugpotion',
    method: 'post',
    data: obj
  })
}

export function getHisDrugPotionObj(id) {
  return request({
    url: '/his/hisdrugpotion/' + id,
    method: 'get'
  })
}

export function delHisDrugPotionObj(id) {
  return request({
    url: '/his/hisdrugpotion/' + id,
    method: 'delete'
  })
}

export function putHisDrugPotionObj(obj) {
  return request({
    url: '/his/hisdrugpotion',
    method: 'put',
    data: obj
  })
}
